home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Window / c / ToFront < prev    next >
Text File  |  1995-07-08  |  1KB  |  30 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Window.ToFront.c
  12.     Author:  Copyright © 1992 Jason Williams
  13.     Version: 1.00 (19 Mar 1992)
  14.     Purpose: High-level window management functions: Bring window to front
  15. */
  16.  
  17.  
  18. #include "DeskLib:WimpSWIs.h"
  19. #include "DeskLib:Window.h"
  20.  
  21. extern void Window_BringToFront(window_handle window)
  22. /* Pulls the window to the front of the window stack */
  23. {
  24.   window_state wstate;
  25.  
  26.   Wimp_GetWindowState(window, &wstate);
  27.   wstate.openblock.behind = -1;
  28.   Wimp_OpenWindow(&wstate.openblock);
  29. }
  30.